<%--
  Created by IntelliJ IDEA.
  User: xianfei
  Date: 15-7-14
  Time: 下午1:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>通讯录管理</title>
    <script>
        $(function () {
            $("#back").click(function () {
                window.location.href = "/note/contacts/list/1";
            })
        })

    </script>
</head>
<body>
<div>
    <form:form commandName="contactsDTO" action="/note/contacts/form">
        <form:hidden path="guid"/>
        <table class="table table-striped" style="width:400px;margin-left: 240px; ">
            <tr>
                <td width="30%">客户姓名:</td>
                <td><form:input path="cusName" cssClass="form-control input-lg"/></td>
            </tr>
            <tr>
                <td>所在区域:</td>
                <td><form:input path="area" cssClass="form-control input-lg"/></td>
            </tr>
            <tr>
                <td>性别:</td>
                <td>
                    <label><form:radiobutton path="gender" value="先生"/>先生</label>
                    <label><form:radiobutton path="gender" value="女士"/>女士</label>
                </td>
            </tr>
            <tr>
                <td>手机号码:</td>
                <td><form:input path="phone" cssClass="form-control input-lg"  pattern="[\d]{11}"  maxlength="11"/></td>
            </tr>
            <tr>
                <td>购买产品:</td>
                <td><form:input path="product" cssClass="form-control input-lg"/></td>
            </tr>
            <tr>
                <td>产品价格:</td>
                <td><form:input path="price" cssClass="form-control input-lg" /></td>
            </tr>
            <tr>
                <td>已付金额:</td>
                <td><form:input path="paid" cssClass="form-control input-lg" /></td>
            </tr>
            <tr>
                <td>度假周次:</td>
                <td>
                    <form:radiobutton path="week" value="黄金周"/>黄金周
                    <form:radiobutton path="week" value="旺季周"/>旺季周
                    <form:radiobutton path="week" value="平季周"/>平季周
                    <form:radiobutton path="week" value="淡季周"/>淡季周
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" class="btn btn-success" value="保存"/>
                    <input type="button" id="back" class="btn btn-info" value="返回">
                </td>
            </tr>
        </table>
    </form:form>
</div>
</body>
</html>